package cn.youqu.happy.module.youqu.enums.arrangeEdit;

import cn.youqu.happy.framework.common.core.IntArrayValuable;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;

/**
 * 用户申请编辑计划状态
 */
@Getter
@AllArgsConstructor
public enum ArrangeEditApplyTypeEnum implements IntArrayValuable {
    CANCEL_ARRANGE(0, "取消活动"),
    MODIFY_ARRANGE(1, "更改活动时间"),
    ;
    private final Integer type;
    private final String msg;
    public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(ArrangeEditApplyTypeEnum::getType).toArray();

    @Override
    public int[] array() {
        return ARRAYS;
    }
}
